package com.game.cards.spells;

import com.game.cards.Attribute;
import com.game.cards.MonsterCard;
import com.game.cards.SpellCard;
import com.game.play.Game;

public class SozinsComet extends SpellCard {
	public SozinsComet()
	{
		this.title = "Sozin'z Comet";
		this.description = "All Fire attribute monsters that you control gain 300 atk";
		
	}
	public void effect(Game game)
	{
		for (MonsterCard mc : game.getCurrentTurn().getField().getMonsterCards())
		{
			if (mc.getAttribute() == Attribute.fire)
			{
				mc.setAttack(mc.getAttack()+300);
			}
		}
		System.out.println("All of " + game.getCurrentTurn().getName() +"'s FIRE monsters gained 300 ATK!");
		this.deck.getOwner().getField().removeSpellTrapById(this.id);
	}

}
